/* ===== MODERN LOGO STYLING ===== */
.logo-heading-box {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

/* Show logo text with image */
.logo-text-optional {
    display: flex !important;
}

.logo-heading-box {
    gap: 12px !important;
}

.logo-heading-box:hover {
    transform: translateY(-1px);
    background: rgba(66, 133, 244, 0.05);
}

.logo-heading-box:active {
    transform: translateY(0);
}

/* Logo Image Enhancements */
.logo-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.logo-img {
    height: 52px;
    width: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2)) !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    /* Restore original sharp thin lines with yellow/red-brown gold metallic look */
    filter: drop-shadow(0 1px 1px rgba(139, 69, 19, 0.3)) drop-shadow(0 0 1px rgba(255, 215, 0, 0.2)) !important;
}

.logo-heading-box:hover .logo-img {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 4px 8px rgba(66, 133, 244, 0.3));
}

/* Glow Effect */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 133, 244, 0.4) 0%, rgba(0, 64, 128, 0.2) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.logo-heading-box:hover .logo-glow {
    opacity: 1;
}

/* Typography Improvements */
.logo-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    gap: 2px;
}

.site-name {
    font-size: 20px;
    font-weight: 800;
    color: #004080;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo-heading-box:hover .site-name {
    color: #4285F4;
    text-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

.site-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: #004080;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    margin-bottom: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.logo-heading-box:hover .site-subtitle {
    color: #4285F4;
}

.site-small {
    font-size: 12px;
    font-weight: 600;
    color: #4285F4;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
    margin-bottom: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #ffd700 0%, #e6b800 40%, #b8860b 60%, #ffe680 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 1px 1px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.12);
}

.logo-heading-box:hover .site-small {
    color: #004080;
}

/* Responsive Logo Sizing */
@media (max-width: 1024px) {
    .logo-img {
        height: 40px;
    }
    .site-title { font-size: 26px; }
}

@media (max-width: 768px) {
    .logo-img {
        height: 34px;
    }
    .site-title { font-size: 22px; }
    .logo-heading-box {
        gap: 10px;
        padding: 2px 4px;
    }
}

@media (max-width: 992px) {
    #mainHeader .logo-wrapper,
    #headerMiddlePanel .logo-wrapper {
        height: auto !important;
        max-height: none !important;
        max-width: none !important;
        overflow: visible !important;
        bottom: 10px !important;
        top: auto !important;
        left: 10px !important;
        transform: none !important;
    }
    #mainHeader .logo-wrapper > a,
    #headerMiddlePanel .logo-wrapper > a {
        display: block !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
    }
    #mainHeader .logo-wrapper img,
    #headerMiddlePanel .logo-wrapper img {
        height: 32px !important;
        max-height: 32px !important;
        width: auto !important;
        max-width: none !important;
        object-fit: contain !important;
        object-position: left center !important;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)) !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 30px;
    }
    .site-title { font-size: 18px; }
    .logo-heading-box {
        gap: 8px;
    }
}

/* Animation for Page Load */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-heading-box {
    animation: logoFadeIn 0.5s ease-out;
}

/* Hide site-title text */
.site-title {
    display: none !important;
}
