@font-face {
    font-family: 'Ubuntu';
    src: url('/fonts/Ubuntu/Ubuntu-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('/fonts/Ubuntu/Ubuntu-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('/fonts/Ubuntu/Ubuntu-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('/fonts/Ubuntu/Ubuntu-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('/fonts/Ubuntu/Ubuntu-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ubuntu';
    src: url('/fonts/Ubuntu/Ubuntu-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Base Typography Overrides */
body, button, input, select, textarea, p, li, a, h1, h2, h3, h4, h5, h6 {
    font-family: 'Ubuntu', 'Lato', sans-serif !important;
}

body {
    font-weight: 400;
    font-size: 16.5px;
    line-height: 1.7;
    color: #1a2530;
}

h1, h2, h3, h4, h5, h6, strong, b {
    font-weight: 700;
    color: #111a24;
}

a {
    text-decoration: none !important;
    font-weight: 500;
    color: #246691;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #164a6e;
    text-decoration: underline !important;
}


/* Header & Logo styling with SVG Pages Autoplay Animation */
#header-logo-image .custom-logo-link {
    position: relative;
    display: inline-block;
    overflow: visible !important;
}

#header-logo-image img.custom-logo {
    max-width: 150px;
    height: auto;
    display: block;
    transition: transform 0.4s ease, max-width 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

#header-logo-image:hover img.custom-logo {
    transform: scale(1.02);
}

#header-logo-image .custom-logo-link {
    position: relative !important;
    display: inline-block !important;
}

/* Underline decoration that grows in sync with fanning pages */
#header-logo-image .custom-logo-link::after {
    content: '' !important;
    position: absolute !important;
    bottom: -3px !important; /* Pushed further below the text 'Librial' to prevent strikethrough look */
    left: 35% !important;   /* Centered under the text */
    width: 30% !important;  /* Shorter, more discreet underline */
    height: 1px !important;  /* Thin elegant line */
    background-color: rgba(36, 102, 145, 0.45) !important; /* Semi-transparent Librial blue */
    transform: scaleX(0);
    transform-origin: left center !important;
    opacity: 0;
    animation: logoUnderlineLoop 5s linear 3s infinite;
}

@keyframes logoUnderlineLoop {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    5% {
        opacity: 0.65;
    }
    40% {
        transform: scaleX(1);
        opacity: 0.65;
    }
    70% {
        transform: scaleX(1);
        opacity: 0.65;
    }
    80% {
        transform: scaleX(1);
        opacity: 0;
    }
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

/* SVG Pages Overlay Container */
#header-logo-image .custom-logo-link svg.logo-pages {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* Individual page design: soft blur and shadow to look like paper */
#header-logo-image .custom-logo-link svg.logo-pages path.page {
    fill: url(#pageGrad) !important;
    stroke: #164a6e;
    stroke-width: 1.2px;
    stroke-linejoin: round;
    transform-origin: 72% 44%; /* Percentage-based pivot to scale with SVG container */
    filter: blur(0.8px) drop-shadow(1px 1px 2px rgba(22, 74, 110, 0.15));
    opacity: 0;
    transform: rotate(68deg); /* Shifted left to limit vertical propagation */
}

/* Page flip animation: organic bending, motion blur, and -2deg landing (Variant 1 Cascade timing) */
@keyframes logoPageFlipLoop {
    0% {
        opacity: 0;
        transform: rotate(68deg) skewY(-2deg) scale(0.98);
        filter: blur(0.5px) drop-shadow(0 0 0 rgba(0,0,0,0));
        animation-timing-function: ease-in; /* Starts slow, accelerates */
    }
    8% {
        opacity: 1;
        transform: rotate(28deg) skewY(3deg) scale(1.02) translateY(-1.2px);
        filter: blur(1.2px) drop-shadow(3px 3px 5px rgba(22, 74, 110, 0.2));
        animation-timing-function: ease-out; /* Slows down gently for landing */
    }
    20% {
        opacity: 1;
        transform: rotate(-2deg) skewY(0deg) scale(0.98) translateY(-1px);
        filter: blur(0.5px) drop-shadow(1px 1px 1px rgba(22, 74, 110, 0.1));
    }
    25%, 100% {
        opacity: 0;
        transform: rotate(-2deg) skewY(0deg) scale(0.98) translateY(-1px);
        filter: blur(0.5px) drop-shadow(0 0 0 rgba(0,0,0,0));
    }
}

/* Autoplay loops staggered every 5 seconds with initial 3s delay on page load */
#header-logo-image .custom-logo-link svg.logo-pages path.p1 {
    animation: logoPageFlipLoop 5s linear 3s infinite;
}
#header-logo-image .custom-logo-link svg.logo-pages path.p2 {
    animation: logoPageFlipLoop 5s linear 3.25s infinite;
}
#header-logo-image .custom-logo-link svg.logo-pages path.p3 {
    animation: logoPageFlipLoop 5s linear 3.5s infinite;
}
#header-logo-image .custom-logo-link svg.logo-pages path.p4 {
    animation: logoPageFlipLoop 5s linear 3.75s infinite;
}
#header-logo-image .custom-logo-link svg.logo-pages path.p5 {
    animation: logoPageFlipLoop 5s linear 4s infinite;
}

#site-title {
    display: none !important;
}

.main-navigation a {
    font-weight: 500;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0.5px;
    color: #2c3e50 !important;
}

.main-navigation a:hover,
.main-navigation li.current-menu-item > a,
.main-navigation li.current_page_item > a {
    color: #246691 !important;
}

/* Custom Slideshow Widget Styles */
.librial-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    margin-bottom: 25px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f5;
}

.librial-slides {
    width: 100%;
    height: calc(100% - 25px);
    position: relative;
}

.librial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.librial-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.librial-slide a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.librial-slide-image {
    width: 100% !important;
    height: 0 !important;
    flex-grow: 1;
    object-fit: contain !important;
    background: #ffffff;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.librial-slide-title {
    position: relative;
    background: #ffffff;
    color: #2c3e50;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.4;
}

/* Dots Navigation */
.librial-slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25px;
    margin: 0;
    gap: 8px;
    background: #ffffff;
}

.librial-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #dcdde1;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.librial-slider-dot:hover {
    background-color: #7f8c8d;
    transform: scale(1.2);
}

.librial-slider-dot.active {
    background-color: #246691;
    width: 14px;
    border-radius: 3px;
}

/* Client References Grid Styles */
.librial-references-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 25px;
}

.librial-reference-item {
    border: 1px solid #eef2f5;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    aspect-ratio: 3/2;
}

.librial-reference-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    border-color: #d1d8e0;
}

.librial-reference-image {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Sidebar Title Alignment */
.widget-title {
    position: relative;
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.widget-title span {
    display: inline-block;
    position: relative;
    border-bottom: none !important;
}

.widget-title span::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #246691;
}

/* Hide default plugin loading indicators and styles */
.slideshow_container {
    display: none !important;
}

/* Hide post meta (author, date, category) */
.entry-meta .by-author,
.entry-meta .date,
.entry-meta .category {
    display: none !important;
}

/* Center and Enlarge Footer Socket Wrapper */
.footer-socket-area {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 12px !important;
    padding: 15px 0 !important;
    width: 100% !important;
    float: none !important;
}

.footer-socket-wrapper .copyright {
    float: none !important;
    max-width: 100% !important;
    font-size: 14px !important;
    color: #666666 !important;
    margin: 0 !important;
}

.footer-logo.editor {
    float: none !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
}

.footer-logo.editor img {
    max-height: 32px !important; /* Larger logo image */
    width: auto !important;
    display: block !important;
    opacity: 0.75 !important;
    transition: opacity 0.2s ease-in-out !important;
}

.footer-logo.editor img:hover {
    opacity: 1 !important;
}

.footer-socket-wrapper .small-menu {
    float: none !important;
    margin: 0 !important;
}

.footer-socket-wrapper .small-menu ul {
    justify-content: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.footer-socket-wrapper .small-menu li {
    float: none !important;
    display: inline-block !important;
    margin: 0 !important;
}

.footer-socket-wrapper .small-menu a {
    font-size: 14px !important;
    padding: 0 !important;
}

/* --- Visual Improvements (Warmth, Spacing, Lists & CTA buttons) --- */

/* Arrière-plan global plus doux et chaud */
body {
    background-color: #fcfbfa !important; /* ivoire/sable très doux */
    color: #1a2530 !important; /* gris ardoise très sombre pour un excellent contraste */
}

/* Encadré de page principal assoupli */
#main {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(139, 126, 116, 0.05) !important; /* ombre légèrement brune */
    border: 1px solid #f2ede6 !important; /* bordure chaude très fine */
}

/* Augmentation de la largeur maximale pour un rendu plus aéré */
.inner-wrap {
    max-width: 1180px !important;
}

/* Espacement plus net entre le contenu et la barre latérale */
#primary {
    padding-right: 35px !important;
}
#secondary {
    padding-left: 25px !important;
    border-left: 1px solid #f2ede6 !important;
}

/* Amélioration de la hauteur de ligne des paragraphes */
p {
    line-height: 1.75 !important;
    margin-bottom: 20px !important;
}

/* Personnalisation esthétique des listes à puces */
.entry-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 25px !important;
}

.entry-content ul li {
    position: relative !important;
    padding-left: 24px !important;
    margin-bottom: 12px !important;
    line-height: 1.7 !important;
}

.entry-content ul li::before {
    content: "•" !important;
    color: #246691 !important; /* Bleu Librial */
    font-weight: bold !important;
    font-size: 22px !important;
    position: absolute !important;
    left: 6px !important;
    top: -2px !important;
}

/* Bouton "Contactez-nous" automatique */
.entry-content a[href*="/contact/"] {
    display: inline-block !important;
    background-color: #246691 !important;
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    margin: 0 4px !important;
    transition: background-color 0.2s, transform 0.1s !important;
    box-shadow: 0 2px 6px rgba(36, 102, 145, 0.2) !important;
}

.entry-content a[href*="/contact/"]:hover {
    background-color: #164a6e !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(36, 102, 145, 0.3) !important;
}

/* Encart d'appel à l'action pour les paragraphes de contact */
.entry-content p:has(a[href*="/contact/"]) {
    margin-top: 40px !important;
    padding: 22px !important;
    background: #fcfcfc !important;
    border: 1px solid #eaeaea !important;
    border-left: 4px solid #246691 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01) !important;
}

/* Background for white SVG client logos in grids */
.librial-reference-item img[src*="logo_white.svg"] {
    background-color: #2c3e50 !important;
    padding: 8px 15px !important;
    border-radius: 6px !important;
    width: 120px !important;
    height: 35px !important;
    display: inline-block !important;
    object-fit: contain !important;
}

/* --- Premium Micro-Animations (CSS Only) --- */

/* Page Load Animation (Fade-in-up) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#primary, #secondary {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#secondary {
    animation-delay: 0.12s; /* Staggered load effect */
}

/* List Items Staggered Fade-In */
@keyframes listSlideIn {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.entry-content ul li {
    animation: listSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.entry-content ul li:nth-child(1) { animation-delay: 0.04s; }
.entry-content ul li:nth-child(2) { animation-delay: 0.08s; }
.entry-content ul li:nth-child(3) { animation-delay: 0.12s; }
.entry-content ul li:nth-child(4) { animation-delay: 0.16s; }
.entry-content ul li:nth-child(5) { animation-delay: 0.20s; }
.entry-content ul li:nth-child(6) { animation-delay: 0.24s; }
.entry-content ul li:nth-child(7) { animation-delay: 0.28s; }
.entry-content ul li:nth-child(8) { animation-delay: 0.32s; }

/* Navigation Menu Sliding Underline */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    position: relative !important;
    padding-bottom: 6px !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.current_page_item a,
.main-navigation ul li.current_page_ancestor a,
.main-navigation ul li.current-menu-ancestor a,
.main-navigation a,
.main-navigation a:hover,
.main-navigation a:focus {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.main-navigation ul li a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 0 !important;
    height: 2px !important;
    background-color: #246691 !important;
    transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), left 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.main-navigation ul li a:hover::after,
.main-navigation ul li.current-menu-item a::after,
.main-navigation ul li.current_page_item a::after {
    width: 80% !important;
    left: 10% !important;
}

/* Button & Link Hover Lift Transitions */
input[type="submit"], 
.entry-content a[href*="/contact/"] {
    transition: background-color 0.25s ease, transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease !important;
}

input[type="submit"]:hover,
.entry-content a[href*="/contact/"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(63, 141, 191, 0.25) !important;
}

input[type="submit"]:active,
.entry-content a[href*="/contact/"]:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(63, 141, 191, 0.2) !important;
}

/* Make contact link standard/discreet on the Facturation Electronique page */
.page-id-236 .entry-content a[href*="/contact/"] {
    display: inline !important;
    background-color: transparent !important;
    color: #246691 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-weight: normal !important;
    margin: 0 !important;
    transition: none !important;
}

.page-id-236 .entry-content a[href*="/contact/"]:hover {
    color: #164a6e !important;
    background-color: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.page-id-236 .entry-content p:has(a[href*="/contact/"]) {
    margin-top: 20px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* --- Beautify All Illustrations, Captions & Galleries --- */

/* Single Images / Illustrations in content */
.entry-content img,
.wp-block-image img {
    border-radius: 8px !important;
    border: 1px solid #f2ede6 !important;
    box-shadow: 0 6px 25px rgba(139, 126, 116, 0.07) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.entry-content img:hover,
.wp-block-image img:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(139, 126, 116, 0.12) !important;
}

/* Captions for single images */
figcaption,
.wp-caption-text {
    font-family: 'Ubuntu', 'Lato', sans-serif !important;
    font-size: 14px !important;
    color: #555c63 !important;
    text-align: center !important;
    margin-top: 8px !important;
    font-style: italic !important;
    line-height: 1.4 !important;
}

/* WordPress Gallery Beautification */
.gallery {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    justify-content: center !important;
    margin-bottom: 30px !important;
}

.gallery-item {
    float: none !important; /* clear old floats */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #f2ede6 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    box-shadow: 0 4px 15px rgba(139, 126, 116, 0.04) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    box-sizing: border-box !important;
}

/* Adjust column widths based on gallery columns class */
.gallery-columns-3 .gallery-item {
    width: calc(33.333% - 14px) !important;
}
.gallery-columns-2 .gallery-item {
    width: calc(50% - 10px) !important;
}
.gallery-columns-4 .gallery-item {
    width: calc(25% - 15px) !important;
}

.gallery-item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(139, 126, 116, 0.1) !important;
    border-color: #dcd6cd !important;
}

.gallery-icon {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 8px !important;
}

.gallery-icon img {
    border-radius: 6px !important;
    border: none !important;
    box-shadow: none !important; /* shadow is on the parent item card */
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Gallery Caption inside the card */
.gallery-item .gallery-caption {
    font-family: 'Ubuntu', 'Lato', sans-serif !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: #1a2530 !important;
    text-align: center !important;
    padding: 4px 0 0 0 !important;
    margin: auto 0 0 0 !important; /* Push caption to the bottom of the card */
    line-height: 1.4 !important;
    font-style: normal !important;
}

@media screen and (max-width: 768px) {
    .gallery-item {
        width: calc(50% - 10px) !important;
    }
}
@media screen and (max-width: 480px) {
    .gallery-item {
        width: 100% !important;
    }
}

/* Position site description in bottom right under the menu (Specific to 'Votre logiciel de gestion dédié au métier de l'édition') */
#site-description.custom-tagline {
    display: block !important;
    text-align: right !important;
    font-size: 14px !important;
    color: #555c63 !important;
    font-weight: normal !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    clear: both !important;
    line-height: 1.5 !important;
}

@media screen and (max-width: 768px) {
    #site-description.custom-tagline {
        text-align: center !important;
        margin-top: 15px !important;
    }
}

/* Align the tagline at the bottom right with the baseline of the logo on the left, keeping the menu at the top */
@media screen and (min-width: 769px) {
    #header-text-nav-wrap.has-custom-tagline-wrap {
        position: relative !important;
    }
    #header-right-section.has-custom-tagline {
        padding-bottom: 35px !important;
    }
    #site-description.custom-tagline {
        position: absolute !important;
        bottom: 15px !important;
        right: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: right !important;
        clear: none !important;
    }
}

/* Custom card-style background for homepage widgets (Features & Client References) */
#slideshowwidget-2,
#slideshowwidget-3 {
    background-color: #f0f4f8 !important;
    padding: 30px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e9f0 !important;
    margin-bottom: 40px !important;
    box-shadow: 0 4px 12px rgba(36, 102, 145, 0.02) !important;
}

@media screen and (max-width: 768px) {
    #slideshowwidget-2,
    #slideshowwidget-3 {
        padding: 20px !important;
        margin-bottom: 30px !important;
    }
}

/* --- Sticky Header & Shrunk Logo on Scroll --- */
/* Prevent parent body overflow rules from breaking position: sticky on pages without sidebars */
body.no-sidebar,
body.no-sidebar-full-width,
#page {
    overflow: visible !important;
}
html, body {
    overflow-x: clip !important;
}

#masthead {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    transition: box-shadow 0.3s ease !important;
}

#masthead.scrolled {
    box-shadow: 0 4px 20px rgba(139, 126, 116, 0.1) !important;
}

#header-text-nav-wrap {
    transition: padding 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

#masthead.scrolled #header-text-nav-wrap {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

#masthead.scrolled #header-logo-image img.custom-logo {
    max-width: 105px !important; /* Shrunk logo for scroll optimization */
}

