/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress Child Theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
	Version:      0.8.65
 Text Domain:  franciscodiary-child
*/

/* ==========================================================================
   4. Homepage Specific Layouts
   ========================================================================== */

/* Homepage Typography (Modern Minimal) */
.fd-integrated-home {
    font-family: var(--fd-font-family-sans);
    color: var(--uf-text);
}

.fd-integrated-home h1,
.fd-integrated-home h2,
.fd-integrated-home h3,
.fd-integrated-home h4,
.fd-integrated-home h5,
.fd-integrated-home h6 {
    font-family: var(--fd-font-family);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.fd-integrated-home .fd-section-header {
    font-family: var(--fd-font-family);
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

/* Top Login Bar (Homepage only) */
.fd-top-login-bar {
    background: linear-gradient(90deg, rgba(250, 250, 245, 0.98), rgba(252, 252, 249, 1));
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-family: var(--fd-font-family-sans);
}

.fd-top-login-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    gap: 12px;
}

.fd-top-login-bar__blessing {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--uf-text-muted);
    font-size: 0.85rem;
    letter-spacing: -0.01em;
}

.fd-top-login-bar__icon {
    color: var(--uf-accent-deep);
}

.fd-top-login-bar__toggle {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--uf-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.fd-top-login-bar__toggle:hover {
    border-color: var(--uf-accent);
    color: var(--uf-accent);
    background: rgba(255, 255, 255, 0.6);
}

/* Homepage Section Padding */
.fd-homepage-section {
    width: 100%;
    padding: var(--fd-section-margin-top) 0 var(--fd-section-margin-bottom) 0;
}

/* Container */
.fd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--fd-container-padding);
    width: 100%;
    box-sizing: border-box;
}

.pray-marquee-defs {
    position: absolute;
    visibility: hidden;
}

/* Panel Grid (Cards) */
.fd-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--fd-space-card-gap);
}

/* ==========================================================================
   5. Floating Sidebar (Refined for Mobile)
   ========================================================================== */
.fd-right-sidebar {
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.85);
    /* More translucent */
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   6. My Cathedral Header Bar (Ultra-Slim Design)
   ========================================================================== */
.my-cathedral-header-bar-wrapper {
    background-color: #fcfcf9;
    /* Even lighter base */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding: 4px 0;
    /* Ultra slim padding */
    font-size: 0.8rem;
    /* Smaller font */
    color: var(--uf-text-muted);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    /* Compact gap */
    flex-wrap: nowrap;
    /* Force single line */
    min-height: 32px;
}

.my-cathedral-main-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cathedral-name-link {
    font-family: var(--fd-font-family);
    font-weight: 700;
    color: var(--uf-text);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
}

.open-mass-times-modal {
    background: rgba(143, 168, 143, 0.1);
    /* Very subtle secondary tint */
    border: 1px solid var(--uf-secondary);
    color: var(--uf-primary-deep);
    padding: 1px 8px;
    /* Minimal padding */
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.open-mass-times-modal:hover {
    background: var(--uf-secondary);
    color: white;
}

.my-cathedral-contact-info {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    padding-left: 12px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--uf-text-muted);
    text-decoration: none;
    font-size: 0.75rem;
}

.contact-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.cig-countdown {
    color: var(--uf-accent);
    font-weight: 700;
    font-size: 0.75rem;
}

/* Modal Redesign (Highly Interactive & Catholic Aesthetic) */
#mass-times-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: var(--fd-z-modal);
}

#mass-times-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#mass-times-modal-content {
    background-color: #fffaf5;
    border-radius: 32px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 40px 120px rgba(51, 46, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#mass-times-modal.is-active #mass-times-modal-content {
    transform: translateY(0) scale(1);
}

#mass-times-modal-title {
    font-family: var(--fd-font-family);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--uf-text);
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.04em;
}

.modal-item-row {
    display: flex;
    justify-content: space-between;
    /* Horizontal alignment */
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    cursor: default;
}

.modal-item-row:hover {
    background: #ffffff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--uf-secondary);
}

.modal-item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--uf-primary-deep);
    white-space: nowrap;
}

.modal-item-value {
    font-size: 0.95rem;
    color: var(--uf-text);
    text-align: right;
    font-weight: 600;
}

#modal-next-mass {
    color: var(--uf-accent);
    font-weight: 800;
    animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

#modal-website {
    color: var(--uf-accent);
    text-decoration: none;
    font-weight: 700;
    padding-bottom: 1px;
    border-bottom: 2px solid rgba(194, 122, 88, 0.2);
    transition: all 0.2s ease;
}

#modal-website:hover {
    border-bottom-color: var(--uf-accent);
}

#mass-times-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--uf-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

#mass-times-modal-close:hover {
    background: var(--uf-error);
    color: white;
    transform: rotate(90deg);
}

/* Row animations */
.modal-item-row {
    opacity: 0;
    transform: translateY(10px);
}

#mass-times-modal.is-active .modal-item-row {
    opacity: 1;
    transform: translateY(0);
}

#mass-times-modal.is-active .modal-item-row:nth-child(1) {
    transition-delay: 0.1s;
}

#mass-times-modal.is-active .modal-item-row:nth-child(2) {
    transition-delay: 0.2s;
}

#mass-times-modal.is-active .modal-item-row:nth-child(3) {
    transition-delay: 0.3s;
}

#mass-times-modal.is-active .modal-item-row:nth-child(4) {
    transition-delay: 0.4s;
}

/* Global Animations */
@keyframes fdFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fdSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   8. Utility / Reset Overrides
   ========================================================================== */
/* Screen Reader Text (SEO Friendly Hiding) */
.screen-reader-text,
.entry-header.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal;
}

/* Remove potential Astra margin interference */
.site-content {
    padding-top: 0;
    padding-bottom: 0;
}

/* Fix list styles in cards */
.fd-card-base ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

/* Force pointer events on snow container so it doesn't block clicks */
.fd-snow-container {
    pointer-events: none;
}

/* ==========================================================================   
   9. Footer Overrides (Catholic Portal Navigation)
   ========================================================================== */

/* ==========================================================================
   10. Catholic Map Hub Styles (Replaced Inline Styles)
   ========================================================================== */
.fd-catholic-map-hub .fd-hub-container {
    padding: 2rem 0;
}

.fd-hub-header {
    text-align: center;
    margin-bottom: 2rem;
}

.fd-hub-button-row {
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.fd-hub-map-wrapper {
    margin-top: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
    min-height: 500px;
    background-color: var(--uf-base);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--fd-shadow-soft);
}

/* ==========================================================================
   11. Today's Saint Bar Styles (Replaced Inline Styles)
   ========================================================================== */
.fd-saint-bar {
    padding: 0;
    background-color: transparent;
}

.fd-saint-bar .fd-container {
    display: flex;
    align-items: center;
    gap: 12px 16px;
    flex-wrap: wrap;
}

.fd-saint-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    width: 100%;
}

.fd-saint-list.is-collapsed .fd-saint-link.is-hidden {
    display: none;
}

.fd-saint-list.is-expanded .fd-saint-link.is-hidden {
    display: inline-flex;
}

.fd-saint-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--uf-text);
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(47, 41, 36, 0.08);
}

.fd-saint-link:hover {
    color: var(--uf-accent);
    transform: translateY(-1px);
    border-color: rgba(194, 122, 88, 0.4);
}

.fd-saint-portrait {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.fd-saint-icon {
    font-size: 1.2em;
    line-height: 1;
}

.fd-saint-name {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

.fd-saint-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--uf-text-muted);
    text-transform: none;
    letter-spacing: -0.01em;
}

.fd-saint-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--uf-text-muted);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(47, 41, 36, 0.12);
    margin-right: 4px;
}

.fd-saint-more {
    display: inline-flex;
    align-items: center;
    color: var(--uf-text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    opacity: 0.85;
    margin-left: auto;
    padding: 2px 8px;
    border: 1px solid rgba(47, 41, 36, 0.18);
    border-radius: 3px;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.6);
    transition: opacity 0.2s ease;
    position: relative;
    /* Ensure z-index works */
    z-index: 5;
    /* Lift above potential overlaps */
    cursor: pointer;
    border-radius: 999px;
    padding: 4px 10px;
}

.fd-saint-list.is-collapsed .fd-saint-more__expanded {
    display: none;
}

.fd-saint-list.is-expanded .fd-saint-more__collapsed {
    display: none;
}

.fd-saint-more:hover {
    opacity: 1;
    border-color: rgba(194, 122, 88, 0.5);
    color: var(--uf-accent);
}

.fd-icon-chevron {
    margin-left: 2px;
}

.fd-saint-more .fd-icon-chevron {
    display: none;
}

.fd-saint-empty {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fd-saint-empty-text {
    font-size: 0.9rem;
    color: var(--uf-text-muted);
}

@media (max-width: 600px) {
    .fd-saint-bar .fd-container {
        align-items: flex-start;
    }

    .fd-saint-list {
        gap: 8px 10px;
    }

    .fd-saint-link,
    .fd-saint-more {
        font-size: 0.9rem;
        padding: 4px 9px;
    }

    .fd-saint-count {
        font-size: 0.75rem;
        padding: 2px 7px;
    }

    .fd-saint-label {
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   12. Feast Strip Styles (Replaced Inline Styles)
   ========================================================================== */
.fd-feast-strip {
    padding: 0;
    background: transparent;
}

.fd-feast-strip__inner {
    display: block;
    padding: 0;
}

.fd-feast-strip__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.fd-feast-strip__fallback {
    margin: 6px 0 0;
    font-size: 0.82rem;
    color: var(--uf-text-muted);
}

/* ==========================================================================
   13. User Widget Styles (Replaced Inline Styles)
   ========================================================================== */
.fd-user-logout-btn {
    margin-left: auto;
    color: var(--uf-text-muted);
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.fd-user-logout-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--uf-error);
}

.fd-user-box__actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.fd-user-box__actions .fd-compact-widget-login {
    flex: 1;
}

.fd-user-box__actions .fd-btn {
    font-size: 0.85rem;
    padding: 8px 4px;
}

.feast-widget__content {
    text-decoration: none;
    color: inherit;
}

/* ==========================================================================
   12. Animated SVG Logo (Handwriting Path Effect)
   ========================================================================== */
.fd-logo-wrapper {
    display: inline-block;
    margin-bottom: 0.35rem;
}

/* Ultra-compact wordmark (SVG removed) */
.fd-logo-wordmark {
    display: inline-block;
    position: relative;
    font-family: 'Great Vibes', cursive;
    font-size: 30px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 0.55rem 0;
    white-space: nowrap;
}

/* Draw underline left->right, then sparkle at the end */
.fd-logo-wordmark::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 110%;
    height: 1.5px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.00) 0%,
            rgba(255, 255, 255, 0.55) 14%,
            rgba(255, 255, 255, 0.95) 55%,
            rgba(255, 255, 255, 0.70) 100%);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.14));
    animation: fd-wordmark-trail 1.8s cubic-bezier(0.65, 0, 0.45, 1) 0.10s forwards;
}

.fd-logo-wordmark::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 32%;
    height: 1.5px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.00) 0%,
            rgba(255, 255, 255, 0.14) 28%,
            rgba(255, 255, 255, 0.55) 52%,
            rgba(255, 255, 255, 0.98) 76%,
            rgba(255, 255, 255, 0.00) 100%);
    opacity: 0;
    transform: translateX(-30%);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.18));
    animation: fd-wordmark-comet 1.05s ease-out 0.28s forwards;
    pointer-events: none;
}

@keyframes fd-wordmark-trail {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }

    10% {
        opacity: 0.85;
    }

    70% {
        opacity: 0.85;
        transform: scaleX(1);
    }

    100% {
        opacity: 0;
        transform: scaleX(1);
    }
}

@keyframes fd-wordmark-comet {
    0% {
        opacity: 0;
        transform: translateX(-35%);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.25)) drop-shadow(0 0 14px rgba(255, 255, 255, 0.12));
    }

    15% {
        opacity: 0.95;
    }

    70% {
        opacity: 0.95;
    }

    100% {
        opacity: 0;
        transform: translateX(300%);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.10));
    }
}

/* Prevent overlap with Korean subtext (SVG removed) */
.fd-logo-wordmark+.fd-logo-subtext {
    margin-top: 0.35rem;
}

.fd-logo-svg {
    overflow: visible;
    /* Drop shadow for better visibility */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    max-height: 74px;
}

/* New: font-based handwritten logo */
.fd-logo-text {
    font-family: 'Great Vibes', cursive;
    font-size: 58px;
    font-weight: 400;
    letter-spacing: -0.01em;

    fill: #ffffff;
    fill-opacity: 0;
    stroke: url(#logo-gradient);
    stroke-width: 2.0px;
    stroke-linecap: round;
    stroke-linejoin: round;

    paint-order: stroke fill;

    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    opacity: 1;
    animation:
        fd-logo-draw-text 2.6s cubic-bezier(0.65, 0, 0.45, 1) 0.1s forwards,
        fd-logo-fill-in 0.8s ease-out 2.3s forwards;
}

.fd-logo-flourish {
    fill: none;
    stroke: rgba(255, 255, 255, 0.7);
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    opacity: 0;
    animation: fd-logo-draw-flourish 1.0s cubic-bezier(0.65, 0, 0.45, 1) 2.1s forwards;
}

@keyframes fd-logo-draw-text {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fd-logo-fill-in {
    to {
        fill-opacity: 0.92;
    }
}

@keyframes fd-logo-draw-flourish {
    0% {
        stroke-dashoffset: 700;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.fd-logo-path {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5px;
    stroke-linecap: round;
    stroke-linejoin: round;

    /* Animation setup */
    stroke-dasharray: 300;
    /* Long enough to cover any letter */
    stroke-dashoffset: 300;
    animation: fd-logo-draw-path 0.8s cubic-bezier(0.65, 0, 0.45, 1) forwards;
    opacity: 0;
    /* Hide initially to prevent dots */
}

/* Make opacity visible when animation starts */
@keyframes fd-logo-draw-path {
    0% {
        stroke-dashoffset: 300;
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Staggered Delays for "Francisco" */
.fd-logo-path.letter-F {
    animation-delay: 0.1s;
}

.fd-logo-path.letter-r {
    animation-delay: 0.5s;
}

.fd-logo-path.letter-a {
    animation-delay: 0.7s;
}

.fd-logo-path.letter-n {
    animation-delay: 0.9s;
}

.fd-logo-path.letter-c {
    animation-delay: 1.1s;
}

.fd-logo-path.letter-i {
    animation-delay: 1.3s;
}

.fd-logo-path.letter-s {
    animation-delay: 1.4s;
}

.fd-logo-path.letter-c2 {
    animation-delay: 1.6s;
}

.fd-logo-path.letter-o {
    animation-delay: 1.8s;
}

/* Staggered Delays for "Diary" (starts after Francisco) */
.fd-logo-path.letter-D {
    animation-delay: 2.2s;
}

.fd-logo-path.letter-i2 {
    animation-delay: 2.6s;
}

.fd-logo-path.letter-a2 {
    animation-delay: 2.8s;
}

.fd-logo-path.letter-r2 {
    animation-delay: 3.0s;
}

.fd-logo-path.letter-y {
    animation-delay: 3.2s;
}


@media (prefers-reduced-motion: reduce) {
    .fd-logo-wordmark::after {
        animation: none;
        transform: scaleX(1);
        opacity: 0.85;
    }

    .fd-logo-wordmark::before {
        animation: none;
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .fd-logo-text,
    .fd-logo-flourish,
    .fd-logo-path {
        animation: none;
        stroke-dashoffset: 0;
        opacity: 1;
    }

    .fd-logo-text {
        fill-opacity: 0.92;
    }
}

/* H1 Subtext (SEO & Identity) */
.fd-logo-subtext {
    font-family: var(--fd-font-family);
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-top: -15px;
    /* Pull closer to signature */
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: fd-fade-in 1s ease-out 3.5s forwards;
    /* Appear after signature */
}

@keyframes fd-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Force Remove Header Image */
.site-header {
    background-image: none;
}

.header-image {
    display: none;
}

/* Hide featured/header images globally (Only in Header Area) */
.page-header-image,
.page-header-image-single,
.featured-image.page-header-image,
.inside-article>.featured-image,
.inside-article>.post-image {
    display: none;
}

/* ==========================================================================   
   12. Custom Global Header (Theme-Independent) - v2.0 Modern Redesign
   ========================================================================== */

/* --- Navigation CSS Variables --- */
:root {
    --fd-nav-bg-start: #0b1018;
    --fd-nav-bg-end: #05070b;
    --fd-nav-text: #f5f8ff;
    --fd-nav-text-muted: rgba(238, 244, 255, 0.76);
    --fd-nav-accent: #cfe2ff;
    --fd-nav-hover-bg: rgba(255, 255, 255, 0.1);
    --fd-nav-active-bg: rgba(255, 255, 255, 0.14);
    --fd-nav-active-border: rgba(255, 255, 255, 0.2);
    --fd-nav-border: rgba(255, 255, 255, 0.14);
    --fd-nav-submenu-text: #3f3329;
    --fd-nav-cta-gradient: linear-gradient(135deg, #1f5e9f, #0f8ef1);
    --fd-footer-bg-start: var(--fd-nav-bg-start);
    --fd-footer-bg-end: var(--fd-nav-bg-end);
    --fd-footer-border: var(--fd-nav-border);
    --fd-footer-text: rgba(245, 248, 255, 0.8);
    --fd-footer-muted: rgba(245, 248, 255, 0.58);
    --fd-footer-link: rgba(245, 248, 255, 0.78);
    --fd-footer-link-hover: var(--fd-nav-accent);
    --fd-nav-height: 54px;
    --fd-nav-height-compact: 46px;
    --fd-nav-breakpoint: 1024px;
}

/* Hide WordPress/GP default headers */
#masthead,
.site-header,
.main-header-bar,
#site-navigation,
.top-bar,
.page-header,
.inside-header {
    display: none;
    height: 0;
    min-height: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
    visibility: hidden;
}

/* --- Main Header Container --- */
.fd-site-header {
    position: sticky;
    top: 0;
    z-index: var(--fd-z-header);
    background: linear-gradient(135deg, var(--fd-nav-bg-start) 0%, var(--fd-nav-bg-end) 100%);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: var(--fd-nav-text);
    box-shadow: 0 4px 16px rgba(26, 22, 18, 0.18);
    border-bottom: 1px solid var(--fd-nav-border);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.fd-site-header::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    opacity: 0.35;
}

.fd-site-header__inner {
    max-width: min(1880px, calc(100vw - 24px));
    margin: 0 auto;
    padding: 0 clamp(8px, 1vw, 14px);
    min-height: 58px;
    height: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(14px, 1.8vw, 26px);
    transition: none;
}

/* --- Brand / Logo --- */
.fd-site-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fd-nav-text);
    text-decoration: none;
    flex-shrink: 0;
}

.fd-site-header__brand:hover {
    opacity: 0.9;
}

.fd-site-header__title {
    font-family: "Great Vibes", var(--fd-font-family);
    font-weight: 400;
    font-size: clamp(1.26rem, 1.5vw, 1.56rem);
    line-height: 1;
    color: var(--fd-nav-accent);
    text-shadow: 0 2px 10px rgba(26, 18, 11, 0.24);
    white-space: nowrap;
    transition: font-size 0.25s ease;
}

/* Remove old decorative line */
.fd-site-header__title::after {
    display: none;
}

/* --- Primary Navigation --- */
.fd-primary-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.fd-primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(8px, 0.8vw, 14px);
}

.fd-primary-menu>li {
    position: relative;
}

/* Hover bridge for submenus */
.fd-primary-menu>li.menu-item-has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

/* --- Menu Item Links --- */
.fd-primary-menu>li>a {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 38px;
    padding: 0 4px;
    color: var(--fd-nav-text-muted);
    text-decoration: none;
    font-family: var(--fd-font-family-sans);
    font-size: 0.87rem;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
    border-radius: 8px;
    position: relative;
    transition: color 0.18s ease, opacity 0.18s ease;
}

/* Subtle underline for hover/current state */
.fd-primary-menu>li>a::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 1.5px;
    border-radius: 999px;
    background: var(--fd-nav-text);
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: center;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.fd-primary-menu>li>a:hover::before,
.fd-primary-menu>li.current-menu-item>a::before,
.fd-primary-menu>li.current-menu-ancestor>a::before {
    transform: scaleX(1);
    opacity: 0.7;
}

.fd-primary-menu>li>a:hover {
    color: var(--fd-nav-text);
    background: transparent;
}

.fd-primary-menu>li.current-menu-item>a,
.fd-primary-menu>li.current-menu-ancestor>a {
    color: var(--fd-nav-text);
    background: transparent;
}

.fd-primary-menu>li.current-menu-item>a::before,
.fd-primary-menu>li.current-menu-ancestor>a::before {
    background: var(--fd-nav-accent);
    opacity: 0.95;
}

/* Hide icons in menu */
.fd-site-header .fd-primary-menu svg,
.fd-site-header .fd-primary-menu .gp-icon,
.fd-site-header .fd-primary-menu .menu-item-icon,
.fd-site-header .fd-primary-menu .dashicons {
    display: none;
}

/* --- Submenu Dropdown --- */
.fd-primary-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 11px;
    border: 1px solid rgba(63, 51, 41, 0.12);
    box-shadow: 0 10px 24px rgba(20, 16, 12, 0.16);
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 184px;
    z-index: var(--fd-z-dropdown);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.fd-primary-menu .sub-menu::before {
    display: none;
}

.fd-primary-menu .sub-menu a {
    display: block;
    padding: 8px 11px;
    color: var(--fd-nav-submenu-text);
    text-decoration: none;
    font-size: 0.81rem;
    font-weight: 600;
    border-radius: 8px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.fd-primary-menu .sub-menu li:hover>a {
    color: #6a4f35;
    background: rgba(236, 214, 173, 0.26);
}

.fd-primary-menu li:hover>.sub-menu,
.fd-primary-menu li:focus-within>.sub-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.fd-primary-menu li.is-open>.sub-menu {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Nested submenu */
.fd-primary-menu .sub-menu .sub-menu {
    top: -6px;
    left: 100%;
    transform: translateX(2px) translateY(0);
}

.fd-primary-menu .sub-menu .sub-menu::before {
    display: none;
}

/* Submenu indicator chevron */
.fd-primary-menu>li.menu-item-has-children>a::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.3px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1.3px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg) translateY(-2px);
    margin-left: 6px;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.fd-primary-menu>li.menu-item-has-children:hover>a::after {
    transform: rotate(-135deg) translateY(0);
    border-color: rgba(255, 255, 255, 0.8);
}

.fd-primary-menu .sub-menu .menu-item-has-children>a::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 1.5px solid rgba(60, 50, 40, 0.5);
    border-bottom: 1.5px solid rgba(60, 50, 40, 0.5);
    transform: rotate(-45deg);
    margin-left: auto;
}

/* --- Header Actions (CTA Buttons) --- */
.fd-site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 0;
    justify-self: end;
}

.fd-site-header__actions::before {
    display: none;
}

.fd-header-utility {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.fd-header-utility--mobile {
    display: none;
}

.fd-mobile-nav-meta,
.fd-header-auth--mobile {
    display: none;
}

.fd-header-utility__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: var(--fd-nav-text-muted);
    text-decoration: none;
    font-family: var(--fd-font-family-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fd-header-utility__link:hover,
.fd-header-utility__link:focus-visible,
.fd-header-utility__link.is-current {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: var(--fd-nav-text);
    transform: translateY(-1px);
}

.fd-language-picker {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.fd-language-picker--desktop {
    display: flex;
}

.fd-language-picker--mobile {
    display: none;
}

.fd-language-picker__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

.fd-language-picker__select {
    min-width: 118px;
    height: 34px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--fd-nav-border);
    border-radius: 10px;
    padding: 0 30px 0 12px;
    color: var(--fd-nav-text);
    font-family: var(--fd-font-family-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    cursor: pointer;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition: all 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%), linear-gradient(to right, transparent, transparent);
    background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%, 0 0;
    background-size: 6px 6px, 6px 6px, auto;
    background-repeat: no-repeat;
}

.fd-language-picker__select:hover,
.fd-language-picker__select:focus-visible {
    border-color: rgba(255, 255, 255, 0.26);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Auto language mode: hide manual language switchers site-wide */
.fnm-lang-switcher,
.fds-language-switcher,
.cig-lang-switcher,
.amm-lang-tabs {
    display: none !important;
}

.amm-lang-container {
    margin: 0 0 1rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.amm-lang-container::before,
.amm-lang-container::after {
    display: none !important;
}

.amm-content-panel {
    padding-top: 0 !important;
}

.fd-header-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fd-header-auth__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--fd-nav-text);
    text-decoration: none;
    font-family: var(--fd-font-family-sans);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.fd-header-auth__btn--login {
    background: rgba(255, 255, 255, 0.05);
}

.fd-header-auth__btn--register,
.fd-header-auth__btn--profile {
    background: rgba(255, 255, 255, 0.08);
}

.fd-header-auth__btn--logout {
    background: transparent;
}

.fd-header-auth__btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.fd-donate-cta {
    background: var(--fd-nav-cta-gradient);
    border: none;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 24px;
    font-family: var(--fd-font-family-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(194, 122, 88, 0.3);
    transition: all 0.2s ease;
}

.fd-donate-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(194, 122, 88, 0.4);
}

.fd-login-cta {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--fd-nav-text);
    padding: 7px 14px;
    border-radius: 24px;
    font-family: var(--fd-font-family-sans);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fd-login-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Hide donate in menu (shown in actions) */
.fd-primary-menu .fd-menu-donate {
    display: none;
}

/* --- Mobile Menu Toggle --- */
.fd-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: var(--fd-z-mobile-nav-toggle);
}

.fd-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fd-nav-toggle__bar {
    display: block;
    width: 20px;
    height: 1.8px;
    background: var(--fd-nav-text);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
}

.fd-nav-toggle__bar:nth-child(1) {
    top: 15px;
}

.fd-nav-toggle__bar:nth-child(2) {
    top: 21px;
}

.fd-nav-toggle__bar:nth-child(3) {
    top: 27px;
}

/* Hamburger → X animation */
.fd-nav-toggle[aria-expanded="true"] .fd-nav-toggle__bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.fd-nav-toggle[aria-expanded="true"] .fd-nav-toggle__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.fd-nav-toggle[aria-expanded="true"] .fd-nav-toggle__bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* --- Mobile Menu Close Button --- */
.fd-nav-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    color: var(--fd-nav-text);
    font-size: 20px;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.fd-nav-close:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: none;
}

/* --- Compact State (on scroll) --- */
.fd-site-header.is-compact {
    box-shadow: 0 2px 12px rgba(33, 28, 25, 0.12);
}

.fd-site-header.is-compact .fd-site-header__inner {
    min-height: 58px;
    height: auto;
}

.fd-site-header.is-compact .fd-site-header__title {
    font-size: clamp(1.26rem, 1.5vw, 1.56rem);
}

.fd-site-header.is-compact .fd-primary-menu>li>a {
    min-height: 35px;
    font-size: 0.86rem;
}

@media (min-width: 1024px) {
    .fd-primary-menu .fd-menu-login,
    .fd-primary-menu .fd-menu-register,
    .fd-primary-menu .fd-menu-logout {
        display: none;
    }
}

@media (max-width: 1200px) {
    .fd-primary-menu>li>a {
        padding: 0 2px;
        font-size: 0.85rem;
    }

    .fd-language-picker__select {
        min-width: 104px;
        font-size: 0.76rem;
    }

    .fd-header-auth__btn {
        min-height: 32px;
        padding: 0 10px;
        font-size: 0.74rem;
    }

    .fd-header-utility__link {
        min-height: 32px;
        padding: 0 11px;
        font-size: 0.73rem;
    }
}

/* Donate modal styles now live in assets/css/theme-navigation.css */

/* Keyboard focus visibility */
.fd-site-header a:focus-visible,
.fd-site-header button:focus-visible {
    outline: 2px solid rgba(242, 213, 155, 0.9);
    outline-offset: 3px;
}

@media (prefers-contrast: more) {
    .fd-site-header__title {
        color: #ffe2b3;
        text-shadow: none;
    }

    .fd-primary-menu>li>a {
        background: rgba(255, 255, 255, 0.24);
        border-color: rgba(255, 255, 255, 0.4);
        color: #ffffff;
    }

    .fd-header-auth__btn,
    .fd-primary-menu>li.current-menu-item>a,
    .fd-primary-menu>li.current-menu-ancestor>a {
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: none;
    }
}

/* ==========================================================================
   15. User Bar (Logged-in State)
   ========================================================================== */
.fd-user-bar {
    background-color: #f7f7f5;
    /* Very light beige/grey to distinguish from header */
    padding: 8px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: var(--fd-z-user-bar);
    clear: both;
}

.fd-skip-link {
    position: absolute;
    top: 0;
    left: 12px;
    z-index: var(--fd-z-modal);
    background: #ffffff;
    color: #201a15;
    padding: 8px 12px;
    border-radius: 10px;
    transform: translateY(-140%);
    transition: transform 0.2s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
    text-decoration: none;
    font-weight: 700;
}

.fd-skip-link:focus,
.fd-skip-link:focus-visible {
    clip: auto;
    clip-path: none;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    transform: translateY(8px);
}

.fd-user-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fd-user-bar__info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--uf-text-muted);
}

.fd-user-bar__avatar {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.fd-user-bar__name {
    color: var(--uf-accent-deep);
    font-weight: 600;
}

.fd-user-bar__logout {
    font-size: 0.82rem;
    color: var(--uf-text-muted);
    text-decoration: none;
    padding: 2px 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.fd-user-bar__logout:hover {
    background-color: #fff;
    border-color: var(--uf-error);
    color: var(--uf-error);
}

.front-page .fd-user-bar+#primary,
.page-template-page-home .fd-user-bar+#primary {
    border-top: none;
}

/* Slimmer Dashboard Widget (Desktop override) */
.fd-dash-mod__action-item {
    padding: 8px 0;
    /* Reduced from 10px */
}

/* Desktop/Mobile Link Visibility */
.fd-mobile-link {
    display: none;
}

.fd-desktop-link {
    display: inline-flex;
}

/* ==========================================================================
   16. Global Footer Styles
   ========================================================================== */
.site-footer {
    background: linear-gradient(180deg, var(--fd-footer-bg-start) 0%, var(--fd-footer-bg-end) 100%);
    color: var(--fd-footer-text);
    font-family: var(--fd-font-family-sans);
    padding: 52px 0 36px;
    font-size: 0.9rem;
    border-top: 1px solid var(--fd-footer-border);
    clear: both;

    /* Force Full Width (Break out of container if necessary) */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;

    display: block;
    visibility: visible;
    position: relative;
    isolation: isolate;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 248, 255, 0.36), transparent);
    opacity: 0.62;
    pointer-events: none;
    z-index: 0;
}

/* Make footer content container fluid instead of fixed 1200px */
.site-footer .fd-container {
    max-width: 100%;
    padding-left: 5%;
    padding-right: 5%;
    position: relative;
    z-index: 1;
}

/* Hide default GeneratePress footer elements if they persist inside our new footer */
.site-info .copyright-bar,
.footer-bar-container {
    display: none;
}

.fd-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(180px, 0.9fr) minmax(220px, 1fr);
    gap: 34px;
    width: 100%;
}

.fd-footer-col {
    min-width: 0;
}

/* Brand Column */
.fd-footer-brand {
    padding-right: 20px;
}

.fd-footer-logo {
    font-family: var(--fd-font-family-sans);
    color: var(--fd-footer-link-hover);
    font-size: clamp(1.32rem, 2vw, 1.72rem);
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 12px;
    line-height: 1.45;
    text-shadow: 0 8px 18px rgba(8, 12, 20, 0.24);
}

.fd-footer-desc {
    font-family: var(--fd-font-family-sans);
    color: var(--fd-footer-text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.fd-footer-copyright {
    font-family: var(--fd-font-family-sans);
    font-size: 0.85rem;
    color: var(--fd-footer-muted);
    line-height: 1.6;
}

/* Links Columns */
.fd-footer-title {
    color: var(--fd-nav-text);
    font-family: var(--fd-font-family-sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.fd-footer-title::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: rgba(245, 248, 255, 0.36);
    margin-top: 8px;
}

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

.fd-footer-links li {
    margin-bottom: 10px;
}

.fd-footer-links a {
    color: var(--fd-footer-link);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--fd-font-family-sans);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    line-height: 1.35;
    padding: 2px 0;
}

.fd-footer-links a:focus-visible {
    outline: 2px solid var(--fd-footer-link-hover);
    outline-offset: 3px;
    border-radius: 8px;
}

.fd-footer-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: all 0.25s ease;
}

.fd-footer-links a:hover {
    color: var(--fd-footer-link-hover);
    transform: translateX(3px);
}

.fd-footer-links a:hover .fd-footer-icon {
    opacity: 1;
    transform: scale(1.1);
    color: var(--fd-footer-link-hover);
}

.fd-footer-motto-box {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(245, 248, 255, 0.12);
}

.fd-footer-ad-majorem {
    font-style: italic;
    font-family: var(--fd-font-family-sans);
    color: rgba(245, 248, 255, 0.42);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Mobile Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 36px 0 34px;
        text-align: center;
    }

    .fd-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .fd-footer-brand {
        padding-right: 0;
    }

    .fd-footer-logo {
        font-size: clamp(1.5rem, 7vw, 1.9rem);
        margin-bottom: 10px;
    }

    .fd-footer-desc {
        margin-bottom: 18px;
    }

    .fd-footer-title::after {
        margin: 8px auto 0;
        /* Center underline */
    }

    .fd-footer-links a {
        justify-content: center;
        min-height: 38px;
    }
}

/* fd-site-header 아래 불필요한 여백 제거 */
.fd-site-header+*,
.fd-site-header~.site-content,
.fd-site-header~#page,
.fd-site-header~.hfeed {
    margin-top: 0;
    padding-top: 0;
}

.page-template-page-home .site-content,
.front-page .site-content,
.page-template-page-home #page,
.front-page #page {
    padding-top: 0;
    margin-top: 0;
}
