@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* =============================================
   DESIGN SYSTEM TOKENS
   ============================================= */
:root {
    /* Brand Colors */
    --primary:        #2DAAE1;
    --primary-dark:   #1F75AC;
    --primary-light:  #E0F2FE;
    --dark:           #0F172A;
    --surface:        #F8FAFC;
    --text:           #0F172A;
    --text-muted:     #64748B;
    --border:         rgba(0, 0, 0, 0.06);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #2DAAE1 0%, #1F75AC 100%);
    --gradient-hero:  linear-gradient(160deg, rgba(15,23,42,0.5) 0%, rgba(15,23,42,0.85) 100%);

    /* Radius Scale */
    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;
    --radius-xl:  40px;

    /* Spacing Scale */
    --section-y:        100px;
    --section-y-sm:     60px;
    --container-gutter: 24px;
    --card-pad:         2rem;

    /* Shadows */
    --shadow-xs:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm:   0 4px 6px -1px rgba(15,117,172,0.07), 0 2px 4px -1px rgba(15,117,172,0.04);
    --shadow-md:   0 10px 25px -5px rgba(15,117,172,0.12), 0 4px 6px -2px rgba(15,117,172,0.05);
    --shadow-lg:   0 20px 50px -10px rgba(15,117,172,0.18);
    --shadow-glow: 0 0 25px rgba(45,170,225,0.35);

    /* Transitions */
    --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
    --duration:    0.4s;
    --transition:  all var(--duration) var(--ease-out);
}

/* =============================================
   BASE RESETS
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background-color: var(--surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark);
}

p { color: var(--text-muted); }

a { transition: var(--transition); }

img { max-width: 100%; height: auto; }

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.section-pad     { padding: var(--section-y) 0; }
.section-pad-sm  { padding: var(--section-y-sm) 0; }

.section-header {
    max-width: 600px;
    margin: 0 auto 4rem;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.7rem 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-md);
}

.navbar-brand img { 
    display: block; 
    height: 42px !important;
    width: auto;
    mix-blend-mode: multiply;
}

#preloader img {
    height: 50px !important;
    width: auto;
    mix-blend-mode: multiply;
}

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-light);
}

.dropdown-menu {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    margin-top: 0.5rem !important;
    background: #fff;
    min-width: 220px;
}

.dropdown-item {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.65rem 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: translateX(4px);
}

.dropdown-item:hover::before { opacity: 1; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
    background: var(--gradient-brand);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-xl);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-glow);
    transition: var(--transition);
    color: white;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(45, 170, 225, 0.45);
    filter: brightness(1.08);
    color: white;
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-xl);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-dark);
    border-color: white;
    transform: translateY(-2px);
}

.btn-outline-primary-brand {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-xl);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    background: transparent;
    transition: var(--transition);
}

.btn-outline-primary-brand:hover {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    min-height: 95vh;
    background: var(--gradient-hero), url('../assets/hero-bg.jpg') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding: 130px 0 100px;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(45, 170, 225, 0.15);
    border: 1px solid rgba(45, 170, 225, 0.4);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    margin-bottom: 1.75rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.text-glow { text-shadow: 0 0 25px rgba(45, 170, 225, 0.6); }

/* Pulse Dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
    0%   { box-shadow: 0 0 0 0 rgba(45, 170, 225, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(45, 170, 225, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 170, 225, 0); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
}

.mouse::after {
    content: '';
    width: 3px;
    height: 7px;
    background: white;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 7px;
    border-radius: 2px;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0%   { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* =============================================
   PAGE HEADERS (inner pages)
   ============================================= */
.page-header {
    padding: 130px 0 80px;
    background: var(--gradient-hero), url('../assets/hero-bg.jpg') center/cover no-repeat;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.85;
    color: white;
    max-width: 560px;
    margin: 0 auto;
}

/* =============================================
   BENTO GRID
   ============================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 270px;
    gap: 1.5rem;
}

.bento-item {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.bento-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45, 170, 225, 0.3);
}

.bento-item.wide { grid-column: span 2; }
.bento-item.tall { grid-row: span 2; }

.bento-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-top: 1.25rem;
    transition: var(--transition);
}

.bento-item:hover img { transform: scale(1.04); }

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: 1.25rem;
    width: fit-content;
}

.bento-link i {
    transition: transform 0.3s var(--ease-out);
    font-size: 1.1rem;
    margin-top: 1px;
}

.bento-link:hover {
    color: var(--primary-dark);
}

.bento-link:hover i {
    transform: translateX(5px);
}

.bento-icon {
    font-size: 2rem;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    display: block;
}

/* =============================================
   CARDS (general)
   ============================================= */
.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--card-pad);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    height: 100%;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

/* =============================================
   FORMS
   ============================================= */
.form-control, .form-select {
    border: 1.5px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 0.85rem 1.1rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background: white;
    color: var(--text);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 170, 225, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

/* =============================================
   PRELOADER
   ============================================= */
#preloader {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-ring {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* =============================================
   REVEAL ANIMATIONS — Always visible, enhanced on scroll
   ============================================= */
.reveal {
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-enter {
    opacity: 0;
    transform: translateY(22px);
}

.reveal-enter.active {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   FOOTER  — unified design
   ============================================= */
.site-footer {
    background: #0D1B2A;
    color: #CBD5E1;
    padding: 80px 0 0;
    margin-top: auto;
}

.footer-brand img {
    height: 42px;
    margin-bottom: 1.25rem;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand-fallback {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    display: block;
    line-height: 1;
}

.footer-brand-fallback span { color: var(--primary); }

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #94A3B8;
    max-width: 280px;
    margin-bottom: 1.75rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    font-size: 0.9rem;
    color: #94A3B8;
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-newsletter-form {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
}

.footer-newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: white;
    outline: none;
}

.footer-newsletter-form input::placeholder { color: #64748B; }

.footer-newsletter-form button {
    background: var(--gradient-brand);
    border: none;
    padding: 0.75rem 1.25rem;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.footer-newsletter-form button:hover { filter: brightness(1.1); }

/* =============================================
   NEWS & INSIGHTS (BLOG) STYLES
   ============================================= */

/* Search & Filters */
.blog-controls {
    margin-bottom: 3.5rem;
}

.blog-search-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.blog-search-box i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.blog-search-box .form-control {
    padding-left: 3rem;
    height: 54px;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-md);
}

.blog-search-box .form-control:focus {
    box-shadow: var(--shadow-md), 0 0 0 3px rgba(45, 170, 225, 0.15);
}

.blog-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-filter-btn {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
}

.blog-filter-btn:hover {
    color: var(--primary);
    border-color: rgba(45, 170, 225, 0.3);
    background: var(--primary-light);
}

.blog-filter-btn.active {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

/* Featured Post */
.blog-featured-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 4rem;
    transition: var(--transition);
}

.blog-featured-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45, 170, 225, 0.3);
}

.blog-featured-img-wrap {
    height: 100%;
    min-height: 380px;
    overflow: hidden;
    position: relative;
}

.blog-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.blog-featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Grid & Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45, 170, 225, 0.3);
}

.blog-card-img-wrap {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    width: fit-content;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
    line-height: 1.4;
    transition: var(--transition);
}

.blog-card-title:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.blog-card-author i {
    color: var(--primary);
}

/* Dynamic Immersive Reading Modal */
.blog-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.blog-modal.active {
    opacity: 1;
    pointer-events: all;
}

.blog-modal-dialog {
    width: 100%;
    max-width: 800px;
    background: white;
    height: 100%;
}

/* =============================================
   EDITORIAL BLOG CONTENT
   ============================================= */
.article-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #334155;
    padding-top: 1rem;
}

.article-content p {
    margin-bottom: 1.75rem;
}

.article-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.article-content h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-content ul li {
    margin-bottom: 0.75rem;
    position: relative;
}

.article-content ul li::marker {
    color: var(--primary);
}

.article-content figure {
    margin: 3.5rem 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.article-content figure img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-content figure:hover img {
    transform: scale(1.02);
}

.article-content figcaption {
    padding: 1.25rem 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.article-content strong {
    color: #0f172a;
    font-weight: 700;
}
    box-shadow: -10px 0 50px rgba(15, 23, 42, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
}

.blog-modal.active .blog-modal-dialog {
    transform: translateX(0);
}

.blog-modal-progress-container {
    height: 4px;
    background: #E2E8F0;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.blog-modal-progress-bar {
    height: 100%;
    background: var(--gradient-brand);
    width: 0%;
    transition: width 0.1s ease-out;
}

.blog-modal-header {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    margin-top: 4px;
}

.blog-modal-close-btn {
    border: none;
    background: var(--surface);
    color: var(--dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition);
}

.blog-modal-close-btn:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    transform: rotate(90deg);
}

.blog-modal-body {
    padding: 3rem 4rem;
    overflow-y: auto;
    flex-grow: 1;
    scroll-behavior: smooth;
}

.blog-modal-body::-webkit-scrollbar {
    width: 8px;
}

.blog-modal-body::-webkit-scrollbar-track {
    background: #F8FAFC;
}

.blog-modal-body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.blog-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Article Styling inside Modal */
.article-header {
    margin-bottom: 2.5rem;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    color: var(--primary);
}

.article-featured-image {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    box-shadow: var(--shadow-md);
}

.article-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #334155;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1.25rem;
    color: var(--dark);
}

.article-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--dark);
}

.article-content p {
    margin-bottom: 1.5rem;
    color: #334155;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: var(--surface);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin: 2.5rem 0;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-share {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-share h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.article-share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.article-share-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.article-cta {
    background: var(--gradient-brand);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    margin-top: 4rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.article-cta h4 {
    color: white;
    margin-bottom: 0.75rem;
}

.article-cta p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.5rem;
}

/* Latest News Homepage Teaser */
.latest-news-section {
    background: white;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

/* Breadcrumbs Refinement */
.breadcrumb-item a {
    color: var(--text-muted);
    font-weight: 600;
}
.breadcrumb-item a:hover {
    color: var(--primary);
}
.breadcrumb-item.active {
    font-weight: 600;
}

/* Hover Utilities */
.hover-primary {
    transition: var(--transition);
}
.hover-primary:hover {
    color: var(--primary) !important;
}

/* Sidebar Refinement */
.blog-sidebar .feature-card {
    height: auto;
}

/* Clickable SAP Services List Hover Effect */
.sap-service-link {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    padding-left: 0;
    border-left: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sap-service-link:hover {
    color: var(--primary) !important;
    padding-left: 12px;
    border-left-color: var(--primary);
}

/* Homepage Modern SAP Solutions Portfolio Directory */
.sap-portfolio-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
    height: 100%;
}
.sap-portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(45, 170, 225, 0.3);
}
.sap-portfolio-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: var(--transition);
}
.sap-portfolio-card:hover .sap-portfolio-icon {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-glow);
}
.sap-portfolio-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--dark);
    line-height: 1.35;
    transition: var(--transition);
}
.sap-portfolio-card:hover .sap-portfolio-name {
    color: var(--primary);
}

.footer-divider {
    border-color: rgba(255,255,255,0.08);
    margin: 3rem 0 1.5rem;
}

.footer-bottom {
    padding-bottom: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748B;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: #64748B;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--primary); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
    :root {
        --section-y: 70px;
    }

    .hero-title      { font-size: 2.8rem; }
    .hero-section    { border-radius: 0 0 40px 40px; min-height: 85vh; background-attachment: scroll; }
    .page-header     { border-radius: 0 0 40px 40px; padding: 110px 0 60px; }
    .section-title   { font-size: 2rem; }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-item.wide { grid-column: span 1; }
    .bento-item.tall { grid-row: span 1; }
    .bento-item      { padding: 1.5rem; }

    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }

    /* Blog Specific */
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .blog-featured-img-wrap {
        min-height: 250px;
    }
    .blog-featured-content {
        padding: 2.25rem;
    }
    .blog-modal-body {
        padding: 2.5rem;
    }
    .article-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title { font-size: 2.2rem; letter-spacing: -0.5px; }
    .section-title { font-size: 1.75rem; }
    .page-header h1 { font-size: 2rem; }

    /* Blog Specific */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-featured-img-wrap {
        min-height: 200px;
    }
    .blog-featured-content {
        padding: 1.5rem;
    }
    .blog-modal-body {
        padding: 1.5rem;
    }
    .article-title {
        font-size: 1.6rem;
    }
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Modern Bento SAP Consulting Directory Integration */
.sap-bento-link {
    display: flex;
    align-items: center;
    padding: 0.55rem 0.7rem;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sap-bento-link:hover {
    background: var(--primary-light);
    border-color: rgba(45, 170, 225, 0.3);
    color: var(--primary) !important;
    transform: translateY(-1.5px);
    box-shadow: var(--shadow-sm);
}
.sap-bento-link i {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}
.sap-bento-link:hover i {
    transform: scale(1.2);
}

.sap-bento-scroll-container::-webkit-scrollbar {
    width: 5px;
}
.sap-bento-scroll-container::-webkit-scrollbar-track {
    background: #F1F5F9;
    border-radius: 3px;
}
.sap-bento-scroll-container::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}
.sap-bento-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.bento-sap-directory-col {
    border-left: 1px solid var(--border);
}

@media (max-width: 767.98px) {
    .bento-sap-directory-col {
        border-left: none !important;
        border-top: 1px solid var(--border);
        padding-left: 0 !important;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
    }
}

/* =============================================
   ENHANCED CONTACT PAGE UI/UX
   ============================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.contact-card-premium {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.contact-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-brand);
    opacity: 0;
    transition: var(--transition);
}

.contact-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45, 170, 225, 0.15);
}

.contact-card-premium:hover::before {
    opacity: 1;
}

.contact-badge-status {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.contact-badge-status.offline {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 0 4px currentColor; }
    100% { transform: scale(0.95); opacity: 0.5; }
}

.contact-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.contact-card-premium:hover .contact-card-icon {
    background: var(--gradient-brand);
    color: white;
    box-shadow: var(--shadow-glow);
}

.contact-btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-top: 1.25rem;
    transition: var(--transition);
}

.contact-btn-action:hover {
    color: var(--primary-dark);
    transform: translateX(3px);
}

.department-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.department-item {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.department-item:hover {
    border-color: rgba(45, 170, 225, 0.2);
    background: rgba(248, 250, 252, 0.7);
    transform: translateX(4px);
}

.map-card-wrapper {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    height: 450px;
    position: relative;
}

.map-card-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.premium-consulting-card {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-consulting-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(45, 170, 225, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.premium-consulting-card h3 {
    color: white;
    font-size: 2.25rem;
    font-weight: 800;
}

.premium-consulting-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
}



