/* Back to Home Button Styling */
.back-to-home-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    margin-right: 10px;
}

.back-to-home-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white;
}

/* Ensure buttons are properly aligned */
.back-to-home-btn + a[href*="logout"] {
    display: inline-block;
    vertical-align: middle;
}

/* Mobile responsive styles */
@media only screen and (max-width: 767px) {
    .back-to-home-btn {
        display: block;
        width: calc(100% - 40px);
        max-width: 200px;
        margin: 10px auto;
        text-align: center;
    }

    /* Stack buttons vertically on mobile */
    body.page-id-1155 .back-to-home-btn,
    body.page-id-1155 a[href*="logout"] {
        display: block !important;
        margin: 10px auto !important;
    }

    /* For gradient box on mobile */
    body.page-id-1155 div[style*="linear-gradient"] .back-to-home-btn,
    body.page-id-1155 div[style*="linear-gradient"] a[href*="logout"] {
        display: inline-block !important;
        margin: 5px !important;
    }
}

/* Desktop styles for button container */
@media only screen and (min-width: 768px) {
    /* Ensure buttons stay side by side on desktop */
    body.page-id-1155 div[style*="display: flex"] .back-to-home-btn,
    body.page-id-1155 div[style*="display: flex"] a[href*="logout"] {
        display: inline-block !important;
        margin: 0 5px !important;
    }
}